# -*- coding = utf-8 -*-
# @Time : 2021/12/16 9:58
# @Author : 龙王赘婿_彪少
# @File : testfor.py
# @Software: PyCharm

class TESTFOR:
    def __init__(self):
        pass

    def test1(self):
        for i in range(3):
            print(i)

    def test2(self):
        for j in range(2, 10):
            print(j)

    # 极骚操作
    def test3(self):
        positions = [(i, j) for i in range(5) for j in range(4)]
        print(positions)

    def test4(self):
        names = ["Cls", "Bck", "", "Close",
                 "7", "8", "9", "/",
                 "4", "5", "6", "*",
                 "1", "2", "3", "-",
                 "0", ".", "=", "+"]
        # 列表放元组
        positions = [(i, j) for i in range(5) for j in range(4)]
        myzip = zip(positions, names)

        print(myzip)
        for i in myzip:
            print(i)

    def test5(self):
        tup = (2, 3)
        print(tup)
        print(*tup)


if __name__ == '__main__':
    testfor = TESTFOR()
    testfor.test5()